import java.util.*;

import java.io.Serializable;
public class ClientPhysique extends Personne implements Serializable {

	private static final long serialVersionUID = -7344485586509550599L;

	private HashSet<ComptePerso> comptes; 

	public ClientPhysique(String n, String p, String ad, GregorianCalendar dn) {
		super(n,p,ad,dn);
		this.setComptes(new HashSet<ComptePerso>());
	}
	
	public void setComptes(HashSet<ComptePerso> c)
	{comptes = c;}
	

	
	public HashSet<ComptePerso> getComptes() {return (comptes);}
	
	public int getNbComptes() {return (getComptes().size());}
	
	public void rajoutCompte(ComptePerso c) {
		this.lierComptePerso(c);
	}
	
	private void lierComptePerso(ComptePerso c){
		comptes.add(c);
	}

}

